package com.wu.demo.common.utils;


import com.wu.demo.common.IErrorCode;
import com.wu.demo.common.exception.BaseException;

/**
 * 断言处理类，用于抛出各种API异常
 */
public class Asserts {
    public static void fail(String message) {
        throw new BaseException(message);
    }

    public static void fail(IErrorCode errorCode) {
        throw new BaseException(errorCode);
    }
}
